package com.flats.service;


import com.flats.model.entity.Address;

import java.io.Serializable;
import java.util.List;

public interface EntityService<T> {
    Serializable saveOrUpdate(T persistent);

    void delete(Long id);

    void delete(T persistent);

    T get(Long id);

    List<T> getAll();
}
